<!DOCTYPE html>
<html>
<head>
    <title>支付方式</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="姓名/银行卡号/账户/手机号"/>
                </i-col>
                <i-col span="4">
                    <i-select v-model="q.paymode" placeholder="支付方式">
                        <i-option value="0">银行卡</i-option>
                        <i-option value="1">支付宝</i-option>
                        <i-option value="2">微信</i-option>
                    </i-select>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                <!--#if($shiro.hasPermission("sportspaymode:save"))-->
                <!--<i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>-->
                <!--#end-->
                #if($shiro.hasPermission("sportspaymode:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                <!--#if($shiro.hasPermission("sportspaymode:delete"))-->
                <!--<i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>-->
                <!--#end-->
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="sportsPaymode" :rules="ruleValidate" :label-width="120">
            <Form-item label="用户姓名" prop="name">
                <i-input v-model="sportsPaymode.name" placeholder="用户姓名" readonly="true"/>
            </Form-item>
            <Form-item label="手机号码" prop="phone">
                <i-input v-model="sportsPaymode.phone" placeholder="手机号码" readonly="true"/>
            </Form-item>
            <Form-item label="支付方式" prop="type">

                <Radio-group v-model="sportsPaymode.type" readonly="true">
                    <Radio label="0">
                        <span>银行账户</span>
                    </Radio>
                    <Radio label="1">
                        <span>支付宝账户</span>
                    </Radio>
                    <Radio label="2">
                        <span>微信账户</span>
                    </Radio>
                </Radio-group>
            </Form-item>
            <Form-item label="银行开户行" prop="bankName">
                <i-input v-model="sportsPaymode.bankName" placeholder="开户行" readonly="true"/>
            </Form-item>
            <Form-item label="银行开户行地址" prop="bankAddress">
                <i-input v-model="sportsPaymode.bankAddress" placeholder="开户行地址" readonly="true"/>
            </Form-item>
            <Form-item label="银行卡号" prop="cardNo">
                <i-input v-model="sportsPaymode.cardNo" placeholder="银行卡号" readonly="true"/>
            </Form-item>
            <Form-item label="账户(微信/支付宝)" prop="account">
                <i-input v-model="sportsPaymode.account" placeholder="账户 微信/支付宝" readonly="true"/>
            </Form-item>
            <Row>
                <i-col span="16">
                    <Form-item label="收款二维码" prop="payUrl">
                        <i-input v-model="sportsPaymode.payUrl" placeholder="收款二维码"  readonly="true"/>
                    </Form-item>
                </i-col>
                <!--<i-col span="3">-->
                    <!--<Form-item :label-width="1">-->
                        <!--<Upload style="width: 300px;" action="../sys/oss/upload" :format="['jpg','jpeg','png']"-->
                                <!--max-size="2048"-->
                                <!--:on-success="handleSuccess" :on-format-error="handleFormatError"-->
                                <!--:show-upload-list="false"-->
                                <!--:on-exceeded-size="handleMaxSize">-->
                            <!--<i-button icon="ios-cloud-upload-outline">上传图片</i-button>-->
                        <!--</Upload>-->
                    <!--</Form-item>-->
                <!--</i-col>-->
                <i-col span="3">
                    <Form-item :label-width="1">
                        <i-button icon="eye" @click="eyeImagePayUrl">预览图片</i-button>
                    </Form-item>
                </i-col>
            </Row>
            <Form-item label="激活状态" prop="isopen">
                <Radio-group v-model="sportsPaymode.isopen" readonly="true">
                    <Radio label="0">
                        <span>未激活</span>
                    </Radio>
                    <Radio label="1">
                        <span>已激活</span>
                    </Radio>
                </Radio-group>
            </Form-item>
            <Form-item label="绑定时间" prop="addTime">
                <Date-picker :value="sportsPaymode.addTime"   format="yyyy-MM-dd HH:mm:ss"  placeholder="绑定时间"  readonly="true" ></Date-picker>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <!--<i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>-->
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/shop/sportspaymode.js?_${date.systemTime}"></script>
</body>
</html>